/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package edu.ucue.ptc.gco.ngc;

import edu.ucue.ptc.gco.mdl.Lote;
import edu.ucue.ptc.gco.util.AtributoInvalidoException;
import edu.ucue.ptc.gco.util.ElementoYaExisteException;
import java.util.List;
import javax.ejb.Local;

/**
 * @author edwin
 */
@Local
public interface LoteManagerLocal {
    public void crearLote(Lote lote, String usuario, String password) throws AtributoInvalidoException, ElementoYaExisteException, Exception;
    public Lote crearLoteT(Lote lote, String usuario, String password) throws AtributoInvalidoException, ElementoYaExisteException, Exception;
    public void actualizarLote(Lote lote, String usuario, String password) throws AtributoInvalidoException, Exception;
    public Lote actualizarLoteT(Lote lote, String usuario, String password) throws AtributoInvalidoException, Exception;
    public void eliminarLote(Lote lote, String usuario, String password) throws AtributoInvalidoException, Exception;
    public Lote eliminarLoteT(Lote lote, String usuario, String password) throws AtributoInvalidoException, Exception;
    
    public List<Lote> listarTodosLotes( String usuario, String password) throws AtributoInvalidoException, Exception;
    public Lote obtenerLotePorId(int idLote, String usuario, String password) throws AtributoInvalidoException, Exception;    

}
